/* 基础变量 */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #6ba4e5;
    --text-color: #2c3e50;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-transform: translateY(-5px);
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg') center/cover;
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: var(--text-shadow);
}

/* 名言区域 */
.quote-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.quote-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.quote-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.quote-text {
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 300;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 20px;
}

.quote-author {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* 特色夫妻区域 */
.featured-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 20px;
}

.featured-couple {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    padding: 50px;
    transition: transform 0.3s ease;
}

.couple-photos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.photo-card {
    text-align: center;
    flex: 1;
}

.photo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.photo-wrapper:hover {
    transform: scale(1.05);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marriage-badge {
    position: relative;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marriage-badge::before,
.marriage-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color));
}

.marriage-badge::before {
    right: 100%;
    background: linear-gradient(to right, transparent, var(--primary-color));
}

.marriage-badge::after {
    left: 100%;
    background: linear-gradient(to left, transparent, var(--primary-color));
}

.years {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
}

.years span {
    font-size: 2rem;
    font-weight: 600;
}

.years small {
    font-size: 1rem;
    opacity: 0.8;
}

/* 更多故事区域 */
.stories-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.story-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.story-card:hover {
    transform: var(--hover-transform);
}

.card-media {
    position: relative;
    height: 200px;
    background: var(--primary-color);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.couple-avatars {
    display: flex;
    height: 100%;
}

.couple-avatars img {
    margin-top: 20px;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.couple-names {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 1;
}

.season-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-content {
    padding: 20px;
}

.story-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #6c757d;
}

.story-preview {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* 加入社区区域 */
.join-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.join-content {
    max-width: 600px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}


/* 响应式调整 */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1.6rem;
    }
    
    .couple-photos {
        flex-direction: column;
        gap: 40px;
    }
    
    .photo-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
    
    .join-buttons {
        flex-direction: column;
    }
    
    .quote-card {
        margin: 0 15px;
        padding: 30px 15px;
    }
    
    .marriage-badge::before,
    .marriage-badge::after {
        display: none;  /* 在移动端隐藏连接线 */
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}